
package test1;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.orm.hibernate3.HibernateTemplate;

import dao.BaseDAO;

import service.UserService;

public class testSpring {
	public static void main(String args[]) {
		  BeanFactory applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml"); 
//	      UserService userService = (UserService) applicationContext.getBean("userService");
//	      BaseDAO baseDAO = (BaseDAO) applicationContext.getBean("baseDAO");
		  HibernateTemplate hibernateTemplate = (HibernateTemplate) applicationContext.getBean("hibernateTemplate");
	      System.out.println(hibernateTemplate);
	    		  
	}
}
